from django.db import models

class Grade(models.Model):
    name = models.CharField(max_length=50, verbose_name='班级名称')
    description = models.TextField(blank=True, verbose_name='班级描述')
    created_at = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')
    updated_at = models.DateTimeField(auto_now=True, verbose_name='更新时间')

    class Meta:
        verbose_name = '班级'
        verbose_name_plural = '班级'

    def __str__(self):
        return self.name